package com.example.service.impl;

import com.example.dto.UserDTO;
import com.example.service.UserService;
import org.springframework.stereotype.Service;

/**
 * spring-cloud-demo
 *
 * @author zhanghaowei
 * @date 2018/5/11
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public UserDTO findUser(Integer userId) {
        UserDTO user = new UserDTO();
        user.setUserId(userId);
        user.setUserName("菩提树下的杨过");
        return user;
    }

}
